// export type PromiseRes<T> = AxiosPromise<BaseResult<T>>;
export type PromiseRes<T> = BaseResult<T>;

interface BaseResult<T> {
  errCode:string,
  data:T,
  errMsg:string
}
// 登录请求参数类型
export interface LoginQuery{
  admin:string,
  password:string,
  resource:number
}
// 登录返回类型
export interface LoginRes{
  token:string,
  adminId:number|string,
  menu:Array<any>
  truename:string
}